package com.spzx;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/*
一条线程打印0
一条线程打印1，要求返回结果01010101.。。重复100次
 */
public class Test03 {
    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            new Thread(()->{
                System.out.print("0");
            }).start();
            new Thread(()->{
                System.out.print("1");
            }).start();

        }

    }
}
